ImageProperties

data class ImageProperties(val canvasHeight: Int? = null, val imageWidth: Int? = null, val imageHeight: Int? = null, val startDrawPositionX: Int? = null, val startDrawPositionY: Int? = null) : Parcelable

A data class that holds the info to the image properties, if null, then the existing layout properties of the passed image will be taken.

Constructors

Link copied to clipboard
constructor(canvasHeight: Int? = null, imageWidth: Int? = null, imageHeight: Int? = null, startDrawPositionX: Int? = null, startDrawPositionY: Int? = null)

Properties

Link copied to clipboard
val canvasHeight: Int? = null

Refers to the canvas height in pixels. The canvas size is paper width x canvas height.

Link copied to clipboard
val imageHeight: Int? = null

Refers to the image height in pixels. If null it will take existing height of image

Link copied to clipboard
val imageWidth: Int? = null

Refers to the image width in pixels. If null it will take existing width of image.

Link copied to clipboard
val startDrawPositionX: Int? = null

Start draw position top left of canvas horizontal to the right.

Link copied to clipboard
val startDrawPositionY: Int? = null

Start draw position top left of canvas vertical downwards.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)